package event_impl

import (
	"go_server/game_server/event_manager/event_data"
	"go_server/zinx/ziface"
	"sync"
)

type ServerShutdownEvent struct {
	event_data.AbsEventData
	RoleId int64
	Wg     *sync.WaitGroup
}


func NewRoleLogoutEvent(roleId int64, conn ziface.IConnection,
	wg *sync.WaitGroup) *ServerShutdownEvent {
	event := new(ServerShutdownEvent)
	event.EventType = event_data.ServerShutdownEvent
	event.RoleId = roleId
	event.Wg = wg
	event.RoleConn = conn
	return event
}
